import { createStore, applyMiddleware, combineReducers } from 'redux'
import { UserReducer } from './reducers'
import thunk from 'redux-thunk'

let rootReducer = combineReducers({
  user: UserReducer
})

let store = createStore(rootReducer, applyMiddleware(thunk))

export default store